/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.cardapiodigital.data;

import br.com.cardapiodigital.exception.CardapioDigitalException;
import java.util.List;

/**
 *
 * @author egberto
 */
public abstract class GenericData<T> {
    
    public void salvar (T entity) throws CardapioDigitalException{}
    
    public void atualizar (T entity) throws CardapioDigitalException{}
    
    public void excluir (int entityId) throws CardapioDigitalException{}
    
    public void excluir (String entityId) throws CardapioDigitalException{}
        
    public List<T> buscarTodos() throws CardapioDigitalException{
        return null;
    }
    
    public T obtem (String entityId) throws CardapioDigitalException{
        return null;
    }
    
    public T obtem (int entityId) throws CardapioDigitalException{
        return null;
    }
}
